package kit.docker.database;

import java.io.Serializable;


public class DataBaseBean implements Serializable {

    /**
     * 数据源名称
     */
    private String name;

    /**
     * 数据库类型
     */
    private String type;

    /**
     * 数据库连接参数：数据库名称
     */
    private String dbName;

    /**
     * 数据库连接参数：数据库驱动
     */
    private String driverClass;

    /**
     * 数据库连接参数：连接URL
     */
    private String jdbcUrl;

    /**
     * 数据库连接参数：用户名
     */
    private String userName;

    /**
     * 数据库连接参数：密码
     */
    private String password;

    /**
     * 数据库连接参数：数据服务器主机
     */
    private String host;

    /**
     * 数据库连接参数：数据服务器端口
     */
    private String port;

    /**
     * 连接池配置参数：初始连接池大小
     */
    private int initialSize;

    /**
     * 连接池配置参数：最小空闲连接数
     */
    private int minIdle;

    /**
     * 连接池配置参数：最大活跃连接数
     */
    private int maxActive;

    /**
     * SQL模板文件
     */
    private String sqlTemplate;

    /**
     * 是否使用SQL引擎
     */
    private boolean sqlEngine = false;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public int getInitialSize() {
        return initialSize;
    }

    public void setInitialSize(int initialSize) {
        this.initialSize = initialSize;
    }

    public int getMinIdle() {
        return minIdle;
    }

    public void setMinIdle(int minIdle) {
        this.minIdle = minIdle;
    }

    public int getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(int maxActive) {
        this.maxActive = maxActive;
    }

    public String getSqlTemplate() {
        return sqlTemplate;
    }

    public void setSqlTemplate(String sqlTemplate) {
        this.sqlTemplate = sqlTemplate;
    }

    public boolean isSqlEngine() {
        return sqlEngine;
    }

    public void setSqlEngine(boolean sqlEngine) {
        this.sqlEngine = sqlEngine;
    }
}
